#ifndef DATAREADER_H
#define DATAREADER_H
#include "qcustomplot.h"
#include "fftw-3.3.5-dll64/fftw3.h"
#include <QMainWindow>
//#include <QtCharts/QChart>
#include    <QtCharts>  //必须这么设置
//#include <QChartView>
//#include <QSplineSeries>
using namespace QtCharts;

QT_BEGIN_NAMESPACE
namespace Ui {
class DataReader;
}
QT_END_NAMESPACE

class DataReader : public QMainWindow
{
    Q_OBJECT

public:
    explicit DataReader(QWidget *parent = nullptr);
    ~DataReader();
    enum{
        A,
        B,
        C,
        D,
        E,
        F,
        G,
        H,
        I,
        J,
    };
    typedef  struct{
        int bitNum;
        bool unsightEn :1;
        //int rowShow;
        int xColumnShow;
        int yColumnShow;
        int step;
        int row;
        int column;
        int pointAdd=0;
    } dataReaderSta;
    dataReaderSta dataReaderStaList;

    QCustomPlot *customPlot;
    QTableWidget *tableWidget;
    QWidget *window;
    QWidget *windowLast;
    QString fileName;

    QPushButton *addButton;
private slots:

    void on_OpenFileButton_clicked();

    void on_DrawLineButton_clicked(bool sta);

    void on_unsightCheckBox_clicked();

    void on_addButton_clicked();

    void on_cutButton_clicked();

private:
    Ui::DataReader *ui;

};

#endif // DATAREADER_H
